#!/usr/bin/python3.6
# -*- coding: utf-8 -*-
# @Time    : 2022/7/24 6:12 下午
# @Author  : super_gou
# @File    : log.py
import logging

def log():
    logging.basicConfig(level=logging.DEBUG,format='%(name)s日志-级别:%(levelname)s-模块:%(module)s.py-第%(lineno)d行:%(message)s')
    logger = logging.getLogger('Interface-main')
    return logger

logger = log()
if __name__ == '__main__':
    logger = log()
    logger.info('test log %s' % ('a'))
    logger.info('test log %s-%s'%('a','b'))
